package com.wsl.Bean;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 14:28 2017/11/24
 * @Modified by:
 */
public class JSR250WayService {
    @PostConstruct//在构造函数执行完之后执行
    public void init(){
        System.out.println("js250-init-method");
    }
    public JSR250WayService(){
        super();
        System.out.println("初始化构造函数-JSR250WayService");
    }
    @PreDestroy   //在Bean销毁之前执行
    public void destroy(){
        System.out.println("jsr250-destory-method");
    }
}